package cn.jeeweb.web.modules.sys.entity;

import cn.jeeweb.common.annotate.UiPropertyField;
import cn.jeeweb.common.flag.ObjectMark;
import cn.jeeweb.common.mvc.entity.DataEntity;
import cn.xjzn.framework_Core.ModuleServe;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * @Title: 角色实体
 * @Description: 角色实体
 */
@TableName("sys_role")
@SuppressWarnings("serial")
public class Role extends DataEntity<String> implements ObjectMark {

	@UiPropertyField(moduleId = ModuleServe.roleModule,propertyName = "name",labelText="角色名称",canBeNull=false)
	@TableField(value = "name")
	private String name;// 角色名称
	@UiPropertyField(moduleId = ModuleServe.roleModule,propertyName = "code",labelText="角色编码")
	@TableField(value = "code")
	private String code;// 角色编码
	@TableField(value = "is_sys")
	@UiPropertyField(moduleId = ModuleServe.roleModule,propertyName = "isSys",labelText="是否系统数据")
	private String isSys;// 是否系统数据
	@TableField(value = "usable")
	@UiPropertyField(moduleId = ModuleServe.roleModule,propertyName = "usable",labelText="是否可用")
	private String usable;// 是否可用
	@TableField(exist = false)
	private String menuIds;//


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getIsSys() {
		return isSys;
	}

	public void setIsSys(String isSys) {
		this.isSys = isSys;
	}

	public String getUsable() {
		return usable;
	}

	public void setUsable(String usable) {
		this.usable = usable;
	}

	public String getMenuIds() {
		return menuIds;
	}

	public void setMenuIds(String menuIds) {
		this.menuIds = menuIds;
	}
}
